package com.schoolhelper.controller.fragment;

import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.core.content.ContextCompat;

import com.hyphenate.easeui.modules.chat.EaseChatFragment;
import com.hyphenate.easeui.modules.chat.EaseChatMessageListLayout;
import com.schoolhelper.controller.activity.R;

public class ChatFragment extends EaseChatFragment {

    private EaseChatMessageListLayout messageListLayout;

    @Override
    public void initView() {
        super.initView();

        messageListLayout = chatLayout.getChatMessageListLayout();
        messageListLayout.canUseDefaultRefresh(false);
        messageListLayout.setBackground(new ColorDrawable(Color.parseColor("#F3F3F3")));
//        messageListLayout.setAvatarDefaultSrc(ContextCompat.getDrawable(getContext(), R.drawable.user));
    }
}
